<?php
class ModelCatalogEnvironmental extends Model {
	public function envirStatus($data) {
		$sql=$this->db->query("INSERT INTO " . DB_PREFIX . "environmental SET name = '" . $data['uname'] . "', fathername = '" . $data['fname'] . "',
		dob = '" .$data['datepicker'] . "', mobile = '" . $data['mobile'] . "', phonenumber = '" . $data['phone'] . "', 
		email ='". $data['email']."', address ='". $data['address'] ."' ,city ='" .$data['city'] ."',
		district ='".$data['dist']."', pincode ='".$data['pin']."',  state = '".$data['state']."' ,
		country ='".$data['countries']."', refereed ='".$data['req']."', dateofvisit ='".$data['datepicker1']."', p_exit_or_not ='".$data['opt']."'");
		$user_id = $this->db->getLastId();
		return $user_id	;
	}
}
	
?>